package com.allming.boot.baidu.map.model;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Getter;
import lombok.Setter;

/**
 * AddressComponent
 * @author ming
 * @date 2020-06-30 18:46
 * <p>company: 杭州行装网络技术有限公司</p>
 * <p>修改履历：</p>
 */
@Getter
@Setter
public class AddressComponent extends BaseModel{
    private String country;
    @JsonAlias("country_code")
    private Integer countryCode;
    @JsonAlias("country_code")
    private String countryCodeIso;
    @JsonAlias("country_code_iso2")
    private String countryCodeIso2;
    /**
     * 省名
     */
    private String province;
    /**
     * 城市名
     */
    private String city;
    @JsonAlias("city_level")
    private Integer cityLevel;
    /**
     * 区县名
     */
    private String district;
    /**
     * 乡镇名
     */
    private String town;
    @JsonAlias("town_code")
    private String townCode;
    private String street;
    @JsonAlias("street_number")
    private String streetNumber;
    @JsonAlias("adcode")
    private String adCode;
    private String direction;
    private String distance;
}
